package com.engine4cloud.tdf.admin.convert;

import com.engine4cloud.tdf.admin.api.dto.AreaCreateDTO;
import com.engine4cloud.tdf.admin.api.dto.AreaUpdateDTO;
import com.engine4cloud.tdf.admin.api.entity.SysAreaEntity;
import com.engine4cloud.tdf.admin.api.vo.AreaResultVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SysAreaConvert {
    SysAreaConvert INSTANCE = Mappers.getMapper(SysAreaConvert.class);

    SysAreaEntity create(AreaCreateDTO s);

    SysAreaEntity update(AreaUpdateDTO s);

    AreaResultVO convert(SysAreaEntity s);

}
